package Redis;

import redis.clients.jedis.Jedis;

public class redis {
    public static Jedis jedis = new Jedis("127.0.0.1",6379);
    public static boolean exist(String username,String P) {
        if (jedis.exists(username)) {
            String password = jedis.get(username);
            if (password == P) {
                return true;
            }
        }
        return false;
    }

        public static void add_username (String username, String password){
            jedis.set(username, password);

        }

}